home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / spwno413.zip / SOURCE.ZIP / SPAWNLPO.C < prev    next >
C/C++ Source or Header  |  1991-11-10  |  900b  |  28 lines

  1. /********************************************************************/
  2. /*   SPAWNO v4.0   EMS/XMS/disk swapping replacement for spawn...() */
  3. /*   (c) Copyright 1990, 1991 Ralf Brown  All Rights Reserved        */
  4. /*                                    */
  5. /*   May be freely copied provided that this copyright notice is    */
  6. /*   not altered or removed.                        */
  7. /********************************************************************/
  8.  
  9. #include "_spawno.h"
  10.  
  11. extern int _Cdecl errno ;
  12. extern int _Cdecl _doserrno ;
  13. char * pascal __spawn_search(const char *) ;
  14.  
  15. int _Cdecl spawnlpo(const char *overlay_path,const char *prog_name,...)
  16. {
  17.    char *prog_path = __spawn_search(prog_name) ;
  18.  
  19.    if (prog_path)
  20.       return __spawnv(overlay_path,prog_path,(const char **)_va_ptr,ENV_SEG) ;
  21.    else
  22.       {
  23.       errno = ENOENT ;     /* _doserrno already set by __spawn_search() */
  24.       return -1 ;
  25.       }
  26. }
  27.  
  28.